package com.itheima.sh.c_method_03;
    /*
     目标：学习基本数据类型作为方法的参数传递特点
    */
public class MethodDemo01 {

        public static void main(String[] args) {
            //定义变量
            int a=10;
            double b=1.2;
            //调用show
            show(a,b);
            System.out.println("main...a = " + a+",b="+b);
        }

        //自定义方法
        public static void show(int x,double y){
            //输出
            System.out.println("show...修改前x = " + x+",y="+y);
            //修改x和y
            x=100;
            y=3.14;
            System.out.println("show...修改后x = " + x+",y="+y);
        }
    }

